package com.jiedeng.model;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

/**
 * @author 覃远龙
 * @ClassName: Event
 * @Description:
 * @date 2017/7/25 12:27
 */
@Entity(name = "t_Event")
public class Event {

    @Id
    @Column(name = "EventID", length = 100)
    private String id;

    @Column(name = "WBS_ID")
    private long wbsId;

    @Column(name = "Templet_ID", length = 50)
    private String templeteId;

    @Column(name = "Project_ID")
    private long projectId;

    @Column(name = "Event_Corp_ID")
    private long eventCorpId;

    @Column(name = "Event_Person_ID", length = 1000)
    private String eventPersonId;

    @Column(name = "Execute_Time")
    @Temporal(TemporalType.TIMESTAMP)
    private Date excuteTime;

    @Column(name = "Execute_Person_ID")
    private String excutePersonId;

    @Column(name = "GPS_ID", length = 1000)
    private String gps;

    @Column(name = "isDraft")
    private boolean isDraft;

    @Column(name = "MergeTask", length = 100)
    private String mergeTask;

    @Transient
    private List<Check> checks;

    @Transient
    private int checkCount;

    @Column
    private Integer propId;

    @Column(name = "StageID")
    private Long stageID;

    public int getCheckCount() {
        return checkCount;
    }

    public void setCheckCount(int checkCount) {
        this.checkCount = checkCount;
    }

    public List<Check> getChecks() {
        return checks;
    }

    public void setChecks(List<Check> checks) {
        this.checks = checks;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getWbsId() {
        return wbsId;
    }

    public void setWbsId(long wbsId) {
        this.wbsId = wbsId;
    }

    public String getTempleteId() {
        return templeteId;
    }

    public void setTempleteId(String templeteId) {
        this.templeteId = templeteId;
    }

    public long getProjectId() {
        return projectId;
    }

    public void setProjectId(long projectId) {
        this.projectId = projectId;
    }

    public long getEventCorpId() {
        return eventCorpId;
    }

    public void setEventCorpId(long eventCorpId) {
        this.eventCorpId = eventCorpId;
    }

    public String getEventPersonId() {
        return eventPersonId;
    }

    public void setEventPersonId(String eventPersonId) {
        this.eventPersonId = eventPersonId;
    }

    public Date getExcuteTime() {
        return excuteTime;
    }

    public void setExcuteTime(Date excuteTime) {
        this.excuteTime = excuteTime;
    }

    public String getExcutePersonId() {
        return excutePersonId;
    }

    public void setExcutePersonId(String excutePersonId) {
        this.excutePersonId = excutePersonId;
    }

    public String getGps() {
        return gps;
    }

    public void setGps(String gps) {
        this.gps = gps;
    }

    public boolean isDraft() {
        return isDraft;
    }

    public void setDraft(boolean draft) {
        isDraft = draft;
    }

    public String getMergeTask() {
        return mergeTask;
    }

    public void setMergeTask(String mergeTask) {
        this.mergeTask = mergeTask;
    }

    public Integer getPropId() {
        return propId;
    }

    public void setPropId(Integer propId) {
        this.propId = propId;
    }

    public Long getStageID() {
        return stageID;
    }

    public void setStageID(Long stageID) {
        this.stageID = stageID;
    }
}
